package com.yuanfeng.userms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.userms.dto.ManageBatchDeleteImageDTO;
import com.yuanfeng.userms.dto.ManageImageNameUpdateParamDTO;
import com.yuanfeng.userms.dto.ManageImageSpaceQueryDTO;
import com.yuanfeng.userms.dto.ManageImageUploadParamDTO;
import com.yuanfeng.userms.entity.UserUploadBaseEntity;

/**
 * @ClassName UserUploadBaseService
 * @Description 用户附件表-图片、视频
 * @Author cf
 * @Date 2023/6/29 9:13
 * @Version 1.0
 */
public interface UserUploadBaseService extends IService<UserUploadBaseEntity> {

    /**
     * 图片空间查询
     *
     * @param param
     * @return
     */
    ResponseResult queryImageSpace(ManageImageSpaceQueryDTO param) throws IllegalAccessException;

    /**
     * 删除图片
     * @param param
     * @return
     */
    ResponseResult deleteImage(ManageBatchDeleteImageDTO param);

    /**
     * 更改图片名称
     * @param param
     * @return
     */
    ResponseResult updateImageName(ManageImageNameUpdateParamDTO param);

    /**
     * 上传图片
     * @param param
     * @return
     */
    ResponseResult uploadImage(ManageImageUploadParamDTO param);
}
